<template>
  <div v-if="showWrap" class="wrap" :class="showContent ?'fadein':'fadeout'">
    <div class="imgbox" id="zh-loading">
      <img  class="image"  src="https://static.shengxue985.com/sxzx_wechat/images/loading.gif" alt />
    </div>
    
  </div>
</template>

<style lang="less" scoped>
.wrap {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  // background: rgba(255,255,255,0.5);
  background: #fff;
  color: #000;
  z-index: 1000;
  
  .timeline-item {
    background: #fff;
    border-radius: 3px;
    padding: 12px;
    margin: 0 auto;
  }
  .imgbox{
    position: relative;
    left: 50%;
    top: 40%;
    width: 80px;
    height : 80px;
    margin-left: -40px;
    // margin-top: -30px;
    background-size: 100%;
    box-shadow:0px 2px 10px 0px rgba(153,153,153,0.2);
    border-radius:8px;
    overflow: hidden;
  }
  .image {
    // position: relative;
    // left: 50%;
    // top: 40%;
    // width: 60px;
    // height : 60px;
    // margin-left: -30px;
    // // margin-top: -30px;
    // background-size: 100%;
    // box-shadow:0px 2px 10px 0px rgba(153,153,153,0.2);
    // border-radius:8px;
    // display: block;
    width: 44px;
    height: 44px;
    margin: 13px auto ;
    display: block;
  }



  .fadein {
    animation: animate_in 0.1s;
  }
  .fadeout {
    animation: animate_out 0.1s;
    opacity: 0;
  }
  @keyframes animate_in {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  @keyframes animate_out {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
}
</style>
